package com.yyw.foodie.bo.address;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * <p>
 * 用户地址表 Bo类
 * </p>
 *
 * @author yiyw
 * @since 2021-05-22
 */
@Data
@ApiModel(value = "用户收货地址Bo类")
@EqualsAndHashCode(callSuper = false)
public class AddressBo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 地址主键id
     */
    @ApiModelProperty(value = "地址主键,存在修改，不存在新增")
    private String addressId;

    /**
     * 关联用户id
     */
    @ApiModelProperty(value = "用户ID")
    @NotBlank(message = "请输入用户名")
    private String userId;

    /**
     * 收件人姓名
     */
    @ApiModelProperty(value = "收件人姓名")
    @NotBlank(message = "请输入收件人姓名")
    private String receiver;

    /**
     * 收件人手机号
     */
    @ApiModelProperty(value = "收件人手机号")
    @NotBlank(message = "请输入收件人手机号")
    private String mobile;

    /**
     * 省份
     */
    @ApiModelProperty(value = "省份")
    @NotBlank(message = "请选择省份")
    private String province;

    /**
     * 城市
     */
    @ApiModelProperty(value = "城市")
    @NotBlank(message = "请选择城市")
    private String city;

    /**
     * 区县
     */
    @ApiModelProperty(value = "区县")
    private String district;

    /**
     * 详细地址
     */
    @ApiModelProperty(value = "详细地址")
    @NotBlank(message = "请输入详细地址")
    private String detail;


}
